<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <link rel="stylesheet" href="/api-test/static/plugins/layui/css/layui.css"/>
    <link rel="stylesheet" href="/api-test/static/css/home.css"/>
    <title>文件管理</title>
</head>

<body class="layui-view-body">
    <div class="layui-content">
        <div class="layui-row">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="form-box">
                        <div class="layui-form layui-form-item">
                            <form id="file-search-form" class="layui-inline">
                                <div class="layui-form-mid">系统名称:</div>
                                <div class="layui-input-inline" style="width: 160px;">
                                    <input type="text" name="system" autocomplete="off" class="layui-input" placeholder="请输入系统名称"/>
                                </div>
                                <div class="layui-form-mid">上传时间:</div>
                                <div class="layui-input-inline">
                                    <input type="text" name="startDay" id="startDay" autocomplete="off" class="layui-input" placeholder="请选择开始时间"/>
                                </div>
                                <div class="layui-form-mid">至:</div>
                                <div class="layui-input-inline">
                                    <input type="text" name="endDay" id="endDay" autocomplete="off" class="layui-input" placeholder="请选择结束时间"/>
                                </div>
                                <button class="layui-btn layui-btn-blue search-btn">查询</button>
                            </form>
                            <button class="layui-btn layui-bg-green fr" id="file-upload">上传文件</button>
                        </div>
                        <table class="layui-hide" id="file-table" lay-filter="file-table"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="file-add-dialog" class="layui-content" style="display: none">
        <form id="file-add-form" class="layui-form" enctype="multipart/form-data">
			<input type="hidden" name="token" />
            <div class="layui-form-item">
                <label class="layui-form-label">系统名称</label>
                <div class="layui-input-block" style="width: 200px">
                    <input type="text" name="system" required="required" lay-verify="required" placeholder="请输入系统名称" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">文件类型</label>
                <div class="layui-input-block" style="width: 200px">
                    <input type="text" name="type" required="required" lay-verify="required" placeholder="请输入文件类型" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">上传文件</label>
                <div class="layui-input-block" style="width: 200px">
                    <button type="button" class="layui-btn" id="file-add-form-file"><i class="layui-icon"></i>上传文件</button>
                </div>
            </div>
            <button id="file-add-submit" class="layui-btn" lay-submit="" lay-filter="file-add-submit" style="display: none;">提交</button>
        </form>
    </div>

    <script src="/api-test/static/plugins/layui/layui.js"></script>
    <script src="/api-test/static/common/js/base.js"></script>
    <script src="/api-test/static/js/file/file.js"></script>
</body>
</html>